package com.hiabr.iep.common.domain.constant;

/**
 * @Description redis常量
 * @Author chenxudong
 * @Date 2023/6/17 11:17 上午
 */
public class RedisConstant {

    /**
     * redis key连接符
     */
    public static final String CONNECTOR = ":";
    /**
     * redis key 自动生成，慎用
     */
    public static final String REDIS_KEY_GENERATOR = "wiselyKeyGenerator";

    public final static String TOKEN = "token:";
    public final static String PERMISSION = "permission:";

    public static final String ONLINE_USER = "online:user:";
    public static final String TOKEN_USER = "token:user:";
    public static final String TOKEN_REFRESH_USER = "token:refresh:user:";

    public static final String ONLINE_ADMIN = "online:admin:";
    public static final String TOKEN_ADMIN = "token:admin:";
    public static final String TOKEN_REFRESH_ADMIN = "token:refresh:admin:";

}
